<script setup lang="ts">

defineProps<{ msg: string }>()
import useHello from '@/hooks/useHello'
const { count,point,add } = useHello()    //组合式API特性功能下，hooks的方式应用demo
</script>

<template>
  <h1>{{ msg }}</h1>

  <div class="card">
    <van-button round type="primary" @click="add">count is {{ count }}</van-button>
    <div>
      Edit
      <code>components/HelloWorld.vue</code> to test HMR
    </div>
	  <p>Click mouseX:{{point.x}}</p>
	  <p>Click mouseY:{{point.y}}</p>
  </div>

  <p>
    Check out
    <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
      >create-vue</a
    >, the official Vue + Vite starter
  </p>
  <p>
    Install
    <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
    in your IDE for a better DX
  </p>
  <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
</template>

<style lang="scss" scoped>
.card {
	padding:16px;
	background-color: var(--van-warning-color);
	color:var(--nav-font-color);
	p{
		color:var(--white-color)
	}
}
.read-the-docs {
  color: #888;
}
</style>
